package com.wcx.create.factory.demo1;

/**
 * 项目: design-pattern-githupdemo
 * <p>
 * 功能描述: 操作
 *
 * @author: WuChengXing
 * @create: 2021-01-08 14:23
 **/
public class OpreatingTest {
    public static void main(String[] args) {
        /**
         * 这里只需要创建出其对应的实现类即可
         */
        Operating operating = OpretionFactory.createOpreation("+");
        operating.setNumberA(1d);
        operating.setNumberB(2d);
        System.out.println(operating.getResult());
    }
}
